//This code was created with the help of Cairngorm Creator by Tyler Beck.
//The portions of this document created by Cairngorm Creator 
//are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
//CONDITIONS OF ANY KIND, either express or implied.
//========================================================



package net.optix.ip.vo
{
	public class PractitionerVO
	{
		public var practitionerID:int;
		public var firmID:int;
		public var userID:int;
		
		
		public var firstName:String;
		public var lastName:String;
		public var email:String;
		public var address:String;
		public var city:String;
		public var state:String;
		public var country:String;
		public var postalCode:String;
		public var message:String;
		public var keyWords:String;
		
		public var bAttorney:int;
		public var bAgent:int;
		public var bPatentBar:int;
		public var bEditor:int;
		public var bDraftsMan:int;
		public var workPhonoe:String;
		public var homePhone:String;
		public var cellPhone:String;

		public static function pursePractitioner(value:XML):PractitionerVO
		{
			var prac:PractitionerVO	=	new PractitionerVO();
			
			try
			{
				prac.practitionerID	=	value.PractitionerID;
				prac.firmID			=	value.FirmID;
				prac.userID			=	value.UserID;
				prac.bAttorney		=	value.BAttorney;
				prac.bAgent			=	value.BAgent;
				prac.bPatentBar		=	value.PatentBar;
				prac.bEditor		=	value.Editor;
				prac.bDraftsMan		=	value.Draftsman;
				prac.workPhonoe		=	value.WorkPhone;
				prac.homePhone		=	value.HomePhone;
				prac.cellPhone		=	value.CellPhone;
				
				prac.firstName		=	value.FirstName;
				prac.lastName		=	value.LastName;
				prac.email			=	value.Email;
				prac.address		=	value.Address;
				prac.city			=	value.City;
				prac.state			=	value.State;
				prac.country		=	value.Country;
				prac.postalCode		=	value.PostalCode;
				trace(prac.bAttorney+"prac.bAttorney");
			}
			catch(error:Error){}
			
			return prac;
		}
	}
}